﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Editor.Video.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ctphTitle" runat="server">
    <h1>Quản lý Video</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

    <div class="form-wrap" style="float:left;width:98%;margin-right:20px;">
<%--        <div class="frmFilter">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th colspan="2">Thêm mới Video</th>
                </tr>
                <tr>
                    <td>Tiêu đề:</td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Trạng thái:</td>
                    <td>
                        <asp:DropDownList ID="drpStatus" runat="server">
                            <asp:ListItem Value="0">Đã đăng</asp:ListItem>
                            <asp:ListItem Value="1">Chưa đăng</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="BtnCreate" runat="server" Text="Tìm kiếm"/>
                    </td>
                </tr>
            </table>
        </div>--%>
        <select name="selectedAction0">
            <option value="0">-- Chọn --</option>
            <option value="1">-- Sửa</option>
            <option value="2">-- Xóa</option>
        </select>
        <asp:Button ID="btnApply" CssClass="button" runat="server" Width="60" 
            Text="Áp dụng" onclick="BtnApplyClick" />&nbsp;&nbsp;
        <asp:GridView ID="grdListVideo" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" 
            DataKeyNames="VideoId" PageSize="15" EmptyDataText="Không có video nào" 
            CssClass="ze-section-grid" style="border-collapse:separate;" border="0" 
            onpageindexchanging="GrdListVideoPageIndexChanging">
            <Columns>
                <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderText="&lt;input type=&quot;checkbox&quot; name=&quot;cboCheck&quot; onfocus=&quot;this.blur();&quot; onclick=&quot;Util.CheckAll($('form#form1 INPUT[@name=cboCheckArticle][type=checkbox]'));&quot; />">
                    <ItemTemplate>
                        <input type="checkbox" onfocus="this.blur();" name="cboCheckArticle" value="<%#Eval("VideoId")%>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="" ItemStyle-Width="10%">
                    <ItemTemplate>
                        <%# WriteVideoImage(Eval("VideoImage"), Eval("CreateDate"), Eval("UserId"))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Video" ItemStyle-Width="40%">
                    <ItemTemplate>
                        <div onmouseover="javascript:Util.DisplayPostAction('PostAction_<%#Eval("VideoId")%>');" onmouseout="javascript:Util.HidePostAction('PostAction_<%#Eval("VideoId")%>');" style="height:32px;">
                            <a class="lnkArticle" href="VideoUpdate.aspx?ID=<%#Eval("VideoId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>"><%#DisplayTitle(Eval("VideoTitle").ToString())%></a>
                            <div class="PostAction" style="display:none;" id="PostAction_<%#Eval("VideoId")%>"><a href="VideoUpdate.aspx?ID=<%#Eval("VideoId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>" title="Edit this video">Sửa</a>&nbsp;|&nbsp;<a href="?action=Delete&ID=<%#Eval("VideoId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>" title="Delete this video" onclick="javascript:return Util.ConfirmDeleteArticle('<%# Eval("VideoTitle") %>');">Xóa</a></div>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Lượt xem" ItemStyle-Width="10%">
                    <ItemTemplate>
                        <%#Eval("VideoView")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Người đăng" ItemStyle-Width="10%">
                    <ItemTemplate>
                        <%#Eval("UserName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày đăng" ItemStyle-Width="15%">
                    <ItemTemplate>
                        <%#DisplayStatusDate(Eval("CreateDate").ToString())%>
                        <%#DisplayStatus(Eval("VideoStatus"))%>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="header" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerStyle CssClass="footer" Font-Size="14" />
        </asp:GridView>
        <select name="selectedAction1">
            <option value="0">-- Chọn --</option>
            <option value="1">-- Sửa</option>
            <option value="2">-- Xóa</option>
        </select>
        <asp:Button ID="btnApply2" CssClass="button" runat="server" Width="60" 
            Text="Áp dụng" onclick="BtnApply2Click" />
    </div>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
